Ext.define('Projeto.view.ObservatoryEdit', {
   extend: 'Ext.window.Window',
   alias: 'widget.observatoryedit',

   title: 'Novo Observatório',
   id: 'windowObservatoryEdit',
   layout: 'fit',
   autoShow: true,

   modal: true,
   width: 400,

   initComponent: function() {
       this.items = [{
            xtype: 'form',
            width: '100%',
            bodyPadding: 10,
            id: 'formUser',

            items: [{
                xtype: 'textfield',
                name: 'nome',
                fieldLabel: 'Nome',
                anchor: '100%'
            }],

            buttons: [
                {
                    text: 'Save',
                    action: 'save'
                },
                {
                    text: 'Cancel',
                    action: 'cancel',
                    scope: this,
                    handler: function() {
                        this.close();
                    }
                }
            ]
       }];

       this.callParent(arguments);
   }
});